<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<body>
	<h1>List Of LDAP Users</h1>
	<table>
	<tr>
		<th>Common Name</th>
		<th>Surname</th>
		<th>Password</th>
	</tr>
	<c:forEach items="${users}" var="user">
	<tr>
		<td>${user.cn}</td>
		<td>${user.sn}</td>
		<td>${user.pwd}</td>
		<td>
			<a href="/test/LDAP_user/delete/${user.cn}">DELETE</a>
		</td>
		<td>
			<a href="/test/LDAP_user/update/${user.cn}">EDIT</a>
		</td>
	</tr>
	</c:forEach>
	</table>	
	<a href="/test/LDAP_user/new">Add New</a>
</body>
</html>